package cn.wh.builder;

import cn.wh.session.Configuration;
import cn.wh.type.TypeAliasRegistry;

/**
 * @Author wh
 * @Description 构建器的基类 建造者模式
 * @Date 2023/1/30 14:30
 * @Version 1.0
 **/
public abstract class BaseBuilder {

    protected final Configuration configuration;

    protected final TypeAliasRegistry typeAliasRegistry;


    public BaseBuilder(Configuration configuration) {
        this.configuration = configuration;
        this.typeAliasRegistry = this.configuration.getTypeAliasRegistry();
    }

    public Configuration getConfiguration() {
        return configuration;
    }

}
